# 
# Makefile.in for etc
#

prefix 		= /usr/local
exec_prefix 	= $(prefix)

srcdir  = .
bindir  = $(exec_prefix)/bin
libdir  = $(exec_prefix)/lib
tooldir = $(libdir)
datadir = $(prefix)/lib

mandir  = $(prefix)/man
man1dir = $(mandir)/man1
man2dir = $(mandir)/man2
man3dir = $(mandir)/man3
man4dir = $(mandir)/man4
man5dir = $(mandir)/man5
man6dir = $(mandir)/man6
man7dir = $(mandir)/man7
man8dir = $(mandir)/man8
man9dir = $(mandir)/man9
infodir = $(prefix)/info

SHELL = /bin/sh

INSTALL 	= install -c
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA    = $(INSTALL)

RM	= rm -f

MAKEINFO = makeinfo

#### Host, target, and site specific Makefile fragments come in here.
###

INFOFILES = configure.info standards.info cfg-paper.info
DVIFILES = configure.dvi standards.dvi cfg-paper.dvi

all:

install:  $(srcdir)/configure.man
	-parent=`echo $(man1dir)|sed -e 's@/[^/]*$$@@'`; \
	if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
	-if [ -d $(man1dir) ] ; then true ; else mkdir $(man1dir) ; fi
	$(INSTALL_DATA) $(srcdir)/configure.man $(man1dir)/configure.1

info: $(INFOFILES)

install-info:
	-parent=`echo $(infodir)|sed -e 's@/[^/]*$$@@'`; \
	if [ -d $$parent ] ; then true ; else mkdir $$parent ; fi
	-if [ -d $(infodir) ] ; then true ; else mkdir $(infodir) ; fi
	for i in *.info* ; do \
	  $(INSTALL) $$i $(infodir) ; \
	done

dvi : $(DVIFILES)

configure.info: $(srcdir)/configure.texi
	$(MAKEINFO) -o configure.info $(srcdir)/configure.texi

configure.dvi : $(srcdir)/configure.texi
	$(TEXI2DVI) $(srcdir)/configure.texi

standards.info: $(srcdir)/standards.texi
	$(MAKEINFO) -I$(srcdir) -o standards.info $(srcdir)/standards.texi

standards.dvi : $(srcdir)/standards.texi
	$(TEXI2DVI) $(srcdir)/standards.texi

cfg-paper.info : $(srcdir)/cfg-paper.texi
	$(MAKEINFO) -o cfg-paper.info $(srcdir)/cfg-paper.texi

cfg-paper.dvi : $(srcdir)/cfg-paper.texi
	$(TEXI2DVI) $(srcdir)/cfg-paper.texi


clean:
	$(RM) *.info *.info-*

distclean:   clean
mostlyclean: clean
realclean:   clean

Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
	$(SHELL) ./config.status

## these last targets are for standards.texi conformance
dist:
check:
installcheck:

TAGS:
